<?php
class ModuleItemDurationLogVo extends SzAbstractMySqlVo
{

    private $id;
    private $uid;
    private $itemid;
    private $c_time;
    private $expire_time;
    private $c_value;

    /**
     * Initialize ModuleItemDurationLogVo.
     *
     * @param $id
     * @param $uid
     * @param $itemid
     * @param $c_time
     * @param $expire_time
     * @param $c_value
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ModuleItemDurationLogVo
     */
    public function __construct($id, $uid, $itemid, $c_time, $expire_time, $c_value, $isInsert = false) {
        $this->id = $id;
        $this->uid = $uid;
        $this->itemid = $itemid;
        $this->c_time = $c_time;
        $this->expire_time = $expire_time;
        $this->c_value = $c_value;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ModuleItemDurationLogVo';
        $this->ormName = 'ModuleItemDurationLog';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'id' => $this->getId(),
            'uid' => $this->getUid(),
            'itemid' => $this->getItemid(),
            'c_time' => $this->getC_time(),
            'expire_time' => $this->getExpire_time(),
            'c_value' => $this->getC_value(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'id' => $this->getId(),
            'uid' => $this->getUid(),
            'itemid' => $this->getItemid(),
            'c_time' => $this->getC_time(),
            'expire_time' => $this->getExpire_time(),
            'c_value' => $this->getC_value(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getId(),
            $this->getUid(),
            $this->getItemid(),
            $this->getC_time(),
            $this->getExpire_time(),
            $this->getC_value(),
        );
    }

    public function getId()
    {
        return $this->id;
    }

    public function setId($val)
    {
        $this->saveColumnStatus(0, $this->id);
        $this->id = $val;
    }

    public function getUid()
    {
        return $this->uid;
    }

    public function setUid($val)
    {
        $this->saveColumnStatus(1, $this->uid);
        $this->uid = $val;
    }

    public function getItemid()
    {
        return $this->itemid;
    }

    public function setItemid($val)
    {
        $this->saveColumnStatus(2, $this->itemid);
        $this->itemid = $val;
    }

    public function getC_time()
    {
        return $this->c_time;
    }

    public function setC_time($val)
    {
        $this->saveColumnStatus(3, $this->c_time);
        $this->c_time = $val;
    }

    public function getExpire_time()
    {
        return $this->expire_time;
    }

    public function setExpire_time($val)
    {
        $this->saveColumnStatus(4, $this->expire_time);
        $this->expire_time = $val;
    }

    public function getC_value()
    {
        return $this->c_value;
    }

    public function setC_value($val)
    {
        $this->saveColumnStatus(5, $this->c_value);
        $this->c_value = $val;
    }

}